CREATE OR REPLACE TRIGGER MYTRIG2
    BEFORE UPDATE OR INSERT OR DELETE ON EMP
     FOR EACH ROW
 BEGIN 
   IF UPDATING  THEN
       DBMS_OUTPUT.PUT_LINE('Updating the table');
   ELSIF  INSERTING THEN
      DBMS_OUTPUT.PUT_LINE('Inserting record into table');
   ELSIF DELETING THEN
      DBMS_OUTPUT.PUT_LINE('Deleting record from table');
   END IF;
 END;
/
    